How do I fix this error? MySql.Data.MySqlClient.MySqlException: 'Unable to connect to any of the specified MySQL hosts.'

您所在的位置:网站首页 error code 13 How do I fix this error? MySql.Data.MySqlClient.MySqlException: 'Unable to connect to any of the specified MySQL hosts.'

How do I fix this error? MySql.Data.MySqlClient.MySqlException: 'Unable to connect to any of the specified MySQL hosts.'

#How do I fix this error? MySql.Data.MySqlClient.MySqlException: 'Unable to connect to any of the specified MySQL hosts.'| 来源: 网络整理| 查看: 265

Hi Junior •,

Welcome to Microsoft Q&A forum.

As I understand, you are getting error MySql.Data.MySqlClient.MySqlException: 'Unable to connect to any of the specified MySQL hosts. when trying to connect to Azure Database for MySQL.

Could you please let us know the configuration details of the Database(Single/Flexible, Region, Compute/Storage etc).

Also, please try to connect to the server and let us know what error appears here:

Screenshot that how to connect with Azure cloud shell.

If you see the following error message while connecting to your flexible server following the command earlier, you missed setting the firewall rule using the "Allow public access from any Azure service within Azure to this server" mentioned earlier or the option isn't saved. Please retry setting firewall and try again. ERROR 2002 (HY000): Can't connect to MySQL server on (115)

Also, check if some vpn client is running, disable and retry. Check Firewall settings too.

Please share details and screenshot of the error. Thank you.



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3